package cn.edu.sjtu.se.peakfactory.dao.interfaces;

 
import java.util.Date;
import java.util.List;

import cn.edu.sjtu.se.lchang.socialnetwork.dao.interfaces.BaseDAO;
import cn.edu.sjtu.se.peakfactory.dao.bean.UserCoupon;

public interface UserCouponDAO extends BaseDAO<UserCoupon>{
	public UserCoupon getUserCouponsById(Long userId,Long couponId);
	
	public List<UserCoupon> getUserCoupons(Long userId);
	
	public Long gainUserCoupon(Long userId, Long couponId, Date startTime);
	
	public int useUserCoupon(Long userId,Long couponId,Date startTime);
}
